

const state = {
	selectedAddress: undefined,
}

const mutations = {
	CHANGEADDRESS(state, selectedAddress){
		state.selectedAddress = selectedAddress
	}
}

const actions = {
	changeSelectedAddress({commit},newAddress){
		commit('CHANGEADDRESS', newAddress)
	}
}

export default {
	namespaced: true,
	state,
	mutations,
	actions
}